define(["underscore", "backbone"], function(_, backbone) {
    var Router = backbone.Router.extend({
        /**
         * @param options
         *  -$rootEl: the root DOM element to which the views will be appended.
         *  -defaultViews: an array of the views that will be rendered when the default route is hit.
         */
        initialize: function(options) {
            var self = this;
            self._$rootEl = options.$rootEl;
            self._defaultViews = options.defaultViews;
        },

        routes: {
            "": "showDefaultView"
        },

        showDefaultView: function() {
            var self = this;
            _.each(self._defaultViews, function(view) {
                self._$rootEl.append(view.render().el);
            });
        }
    });

    return Router;
});